<?php

class Agent extends Item {
	
	public function getUrl() {
		$pageRepository = new PageRepository();
		$page = $pageRepository->getOneByUid(Page::AGENTS);
		return $page['alias'] . '/' . $this['alias'] . '.html';
	}
	
	public function getImagePath() {
		return 'uploads/tx_reality/agent/' . $this['image'];
	}
}

?>